package com.ruoyi.erp.safetyinstruction.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @version 2017.1.1
 * @Auther Du Ruifang @萌えキュンキュン
 * @Date 2020/12/25 10:09
 * @description 该类的作用
 */

public class SafetyInstructionTab implements Serializable {
    @Excel(name = "安全代码")
    private String hazardCode;
    @Excel(name = "安全描述")
    private String description;
    @Excel(name = "安全指导")
    private String noteText;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rowversion;
    private String rowkey;

    public SafetyInstructionTab(String hazardCode, String description, String noteText, Date rowversion, String rowkey) {
        this.hazardCode = hazardCode;
        this.description = description;
        this.noteText = noteText;
        this.rowversion = rowversion;
        this.rowkey = rowkey;
    }

    @Override
    public String toString() {
        return "SafetyInstructionTab{" +
                "hazardCode='" + hazardCode + '\'' +
                ", description='" + description + '\'' +
                ", noteText='" + noteText + '\'' +
                ", rowversion=" + rowversion +
                ", rowkey='" + rowkey + '\'' +
                '}';
    }

    public String getHazardCode() {
        return hazardCode;
    }

    public void setHazardCode(String hazardCode) {
        this.hazardCode = hazardCode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getnoteText() {
        return noteText;
    }

    public void setnoteText(String noteText) {
        this.noteText = noteText;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getRowversion() {
        return rowversion;
    }

    public void setRowversion(Date rowversion) {
        this.rowversion = rowversion;
    }

    public String getRowkey() {
        return rowkey;
    }

    public void setRowkey(String rowkey) {
        this.rowkey = rowkey;
    }

    public SafetyInstructionTab() {

    }
}
